package com.exmaple.taskreminder;

import android.os.Bundle;
import android.support.v4.app.ListFragment;
import android.widget.ArrayAdapter;
import android.widget.ListAdapter;

public class ReminderListFragment extends ListFragment {

	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		//setContentView(R.layout.reminder_list_fragment);
		setEmptyText(getResources().getString(R.string.no_reminders));
	}
	
	private ListAdapter mAdapter;
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		String[] items = {"Foo","Bar","Fizz","Bin"};
		mAdapter = new ArrayAdapter<String>(getActivity(),R.layout.reminder_row, R.id.text1, items);
		setListAdapter(mAdapter);
		
	}
}
